<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<center>
		<form method="post" action="myinfo/message/delete.do" id="sendmsg_delete">
		<table width="600" cellpadding="0" cellspacing="0">
		<tr>
			<td colspan="3" align="center">
				<table border="1" width="600">
					<tr>
						<td align="center">
							<s:a href="myinfo/message/recv_list.do" theme="ajax" targets="maincontents">
								받은 쪽지함
							</s:a>
						</td>
						<td align="center">
							<s:a href="myinfo/message/send_list.do" theme="ajax" targets="maincontents">
								보낸 쪽지함
							</s:a>
						</td>
						<td align="center">
							<a href="myinfo/message/send.do" 
							onClick="window.open(this.href, '', 'width=300, height=330 menubars=no, scrollbars=auto'); return false;">
								쪽지 보내기
							</a>
						</td>
					</tr>
				</table>
			</td>
		</tr>
			<tr>
				<td colspan="3" align="left">
					<table border="1" width="600" cellpadding="0" cellspacing="0">
						<tr>
							<td align="center" width="65">
								<s:a showLoadingText="false" id="sendmsg_delete" theme="ajax" targets="maincontents">삭제</s:a>
								<input type="hidden" name="sd_rv" value="sd">
							</td>
							<td align="left">	<s:a href="myinfo/message/msgAllDelete.do?sd_rv=sd" theme="ajax" targets="maincontents">전체 삭제</s:a></td>
							<td align="right">받는사람</td>
						</tr>
					</table>
				</td>	
			</tr>
			<tr>
				<td colspan="3">
					<hr>
				</td>
			</tr>
			<s:iterator value="list">
				<tr>
				
					<td width="65" align="center">
						<input type="checkbox" name="no" value="${no}">
					</td>
					<td width="80%" align="center">
						<a href="myinfo/message/content.do?no=${no }" onClick="window.open(this.href, '', 'width=300, height=330 menubars=no, scrollbars=auto'); return false;">${content }</a></td>
					<td align="right" width="65">${recv_id }</td>
				
				</tr>
			</s:iterator>
			
		</table>
		</form>
	</center>
</body>
</html>